package com.yanqu.road.entity.config.goods;

import com.yanqu.road.utils.string.StringUtils;

import java.util.List;

/**
 * @Author wpj
 * @Date 2020/9/6
 */
public class CommonActivityRateGood {
    int rate;
    int boxId;

    public CommonActivityRateGood(String str) {
        List<Integer> list = StringUtils.stringToIntegerList(str, ",");
        rate = list.get(0);
        boxId = list.get(1);
    }

    public CommonActivityRateGood(int rate, int boxId) {
        this.rate = rate;
        this.boxId = boxId;
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }

    public int getBoxId() {
        return boxId;
    }

    public void setBoxId(int boxId) {
        this.boxId = boxId;
    }
}
